Adwaita: scales on selected list rows.
authorLapo Calamandrei <calamandrei@gmail.com>
Wed, 2 Sep 2015 09:01:08 +0000 (11:01 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Wed, 2 Sep 2015 09:01:08 +0000 (11:01 +0200)
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 29789542a92d66458e819a5dc84bffc16230d6ad..8abf21a63983d8f1a017a60df0e886cf88da1079 100644 (file)
@@ -2302,6 +2302,7 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
       border-color: $backdrop_borders_color;
       background-color: $insensitive_bg_color;
     }
+
     //OSD troughs
     .osd & {
       border-color: $osd_borders_color;
@@ -2325,6 +2326,23 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
       }
     }
   }
+  // scales on selected list rows
+  .list-row:selected & {
+    border-color: $selected_borders_color;
+    &.trough {
+      box-shadow: inset 1px 1px transparentize(black, 0.9);
+      &:backdrop { box-shadow: none; }
+      &.highlight:backdrop { border-color: $selected_borders_color; }
+    }
+    &:insensitive,
+    &.trough.highlight:insensitive {
+      border-color: $selected_bg_color;
+      box-shadow: none;
+      background-color: mix($selected_fg_color, $selected_bg_color, 50%);
+      background-image: none;
+      &:backdrop { background-color: mix($backdrop_selected_fg_color, $selected_bg_color, 50%); }
+    }
+  }
 }
 
 @each $d,$dn in ('', 'horz'),
index 4a01502ee3b7686d176f1eb3bc7e545f369132f4..553d4a8fe74d669ec2d06f1c0aabdc41a007f5bb 100644 (file)
@@ -3074,6 +3074,37 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
       .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
         border-color: rgba(0, 0, 0, 0.7);
         background-image: none; }
+  .list-row:selected .scale, .list-row:selected
+  .scale.scale-has-marks-above.scale-has-marks-below, .list-row:selected
+  .scale.vertical.scale-has-marks-above.scale-has-marks-below {
+    border-color: #0f2b48; }
+    .list-row:selected .scale.trough, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below.trough, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough {
+      box-shadow: inset 1px 1px rgba(0, 0, 0, 0.1); }
+      .list-row:selected .scale.trough:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
+        box-shadow: none; }
+      .list-row:selected .scale.trough.highlight:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:backdrop {
+        border-color: #0f2b48; }
+    .list-row:selected .scale:insensitive, .list-row:selected .scale.trough.highlight:insensitive, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below:insensitive, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below:insensitive, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive {
+      border-color: #215d9c;
+      box-shadow: none;
+      background-color: #90aece;
+      background-image: none; }
+      .list-row:selected .scale:insensitive:backdrop, .list-row:selected .scale.trough.highlight:insensitive:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below:insensitive:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below:insensitive:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive:backdrop {
+        background-color: #90aece; }
 
 .scale.scale-has-marks-below {
   -GtkScale-slider-length: 20;
index f8e5619e021f880ffa42b9af80ceffab3a4ca7f2..b9cf139d47474ade01d8efb480286ae5a199bed0 100644 (file)
@@ -3236,6 +3236,37 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
       .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
         border-color: rgba(0, 0, 0, 0.7);
         background-image: none; }
+  .list-row:selected .scale, .list-row:selected
+  .scale.scale-has-marks-above.scale-has-marks-below, .list-row:selected
+  .scale.vertical.scale-has-marks-above.scale-has-marks-below {
+    border-color: #184472; }
+    .list-row:selected .scale.trough, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below.trough, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough {
+      box-shadow: inset 1px 1px rgba(0, 0, 0, 0.1); }
+      .list-row:selected .scale.trough:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
+        box-shadow: none; }
+      .list-row:selected .scale.trough.highlight:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:backdrop {
+        border-color: #184472; }
+    .list-row:selected .scale:insensitive, .list-row:selected .scale.trough.highlight:insensitive, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below:insensitive, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below:insensitive, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive {
+      border-color: #4a90d9;
+      box-shadow: none;
+      background-color: #a5c8ec;
+      background-image: none; }
+      .list-row:selected .scale:insensitive:backdrop, .list-row:selected .scale.trough.highlight:insensitive:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below:insensitive:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below:insensitive:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive:backdrop {
+        background-color: #a5c8ec; }
 
 .scale.scale-has-marks-below {
   -GtkScale-slider-length: 20;